// pages/resume/resume.js
var app = getApp()
const { $Message } = require('../../dist/base/index');
Page({

  /**
   * 页面的初始数据
   */
  data: {
    optionTab: 0,
    aaa:-1,
    people: [
      { "name": "王大锤", "age": "23岁", "type": "管培生", "sex": "0", "school": "华理工", "edu": "本科", "major": "计算机与软件专业", "addtime": "2018-12-22 10:00", "mark": 2 },
      { "name": "王大锤", "age": "23岁", "type": "管培生", "sex": "1", "school": "华理工", "edu": "本科", "major": "计算机与软件专业", "addtime": "2018-12-22 10:00","mark":1 }
    ],
    
    visible1: false,
  
    actions1: [
      {
        name: '全部下载',
        color: 'blue',
      },
      {
        name: '邀请面试',
        color: 'blue',
      },
      {
        name: '查看详请',
        color: 'blue',
      },
      {
        name: '不合适',
        // icon: 'share',
        color: 'red',
        openType: 'share'

      }
    ],
    select: ['职位', '学校', '学历', '专业'],
    current: 'tab1',
    current_scroll: 'tab1',
    navbar: ['全部', '待筛选', '不合适'],
    currentTab: 0
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
      
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
     
  },
  navbarTap: function (e) {
    console.log(e.currentTarget.dataset.idx)
    this.setData({
      currentTab: e.currentTarget.dataset.idx
    })
  },
  selectTap: function (e) {
    this.setData({
      optionTab: e.currentTarget.dataset.idx
    })
  },
  handleOpen1(e) {
    console.log(e.currentTarget.dataset.idx)
    this.setData({
      visible1: true,
      aaa: e.currentTarget.dataset.idx
    });
  },
  handleCancel1() {
    this.setData({
      visible1: false
    });
  }
  

})